﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class www
    {
        public string name { get; set; }
       public www(string name)
        {
            this.name = name;
        }

    }
    interface Iathlete
    {
        string Name { get; set; }
        void print();
    }
    class Teacher : www, Iathlete
    {
        private string name;
        public string Name { 
            get {
                return name;
            }
            set {
                name = value;
            } 
        }
        public string teacher { get; set; }

        public Teacher(string name,string teacher, string name1) :base(name)
        {
            this.teacher = teacher;
            this.Name = name1;
        }


        public void print()
        {
            Console.WriteLine("我叫{0}，我是{1}，也是{2}",base.name, this.teacher, this.Name);
        }
    }
    interface IProgrammer 
    {
        void print();
    }
    class Programmer : www, IProgrammer
    {
        public Programmer(string name) : base(name)
        {
            
        }

      

        public void print()
        {
            Console.WriteLine("我是{0}，我是员工，也是作家",this.name);
        }
    }
}
